package com.fjh.repository;

import com.fjh.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Integer> {

    // 根据用户名查询用户
    User findByLoginName(String loginName);
}
